<!DOCTYPE html>
<html lang="en">
	<head>
		<title>购物车</title>
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	</head>
	<body>
		<table>
			<tr>
				<td>goods_id</td>
				<td>goods_number</td>
				<td>NUM</td>
				<td>PRICE</td>
				<td>SHOPNAME</td>
			</tr>
			<%for(item in items){%>
				<tr>
					<td>${item.goods_id}</td>
					<td>${item.goods_number}</td>
					<td>${item.num}</td>
					<td>${item.price}</td>
					<td>${item.shopname}</td>
				</tr>
			<%}%>
		</table>
		
		<a href="index">Return</a> &nbsp;<a href="index">GOON</a>
	</body>
</html>
<script src="http://cdn.bootcss.com/jquery/2.1.3/jquery.js"></script>
<script type="text/javascript">
<!--

function addItem(id,num){
	$.get('../cart/addCartItem?id='+id+'&num='+num+'&_='+new Date().getTime(),function(data) {
		eval('var data = ' + data + ';');
		if(data.result == 'success') {
			alert("success");
			// refreshCollect();
			window.location.reload();
		}
	});
}

//-->
</script>
